package com.taxshare.seller.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.taxshare.seller.entity.SellerInvoiceEntity;
import com.taxshare.seller.entity.excel.InvoicedExcelEntity;
import com.taxshare.seller.view.dto.InvoicedDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author YANG
 * @date 2021/3/25
 */
@Mapper
public interface InvoicedMapper extends BaseMapper<SellerInvoiceEntity> {

    List<InvoicedExcelEntity> selectInvoicExport(InvoicedDTO info);


    List<InvoicedExcelEntity> selectInvoiceDetailExport(InvoicedDTO info);

    List initTenantOrgs(@Param(Constants.WRAPPER)Wrapper queryWrapper);

    IPage<SellerInvoiceEntity> selectListBySql(Page page, @Param(value = "info") InvoicedDTO query);

    List<SellerInvoiceEntity> selectSCFPHZQRXX(Map<String,Object> pMap);

    void updateInvoiceInfo(Map<String,Object> sstResMap);

    List<SellerInvoiceEntity> selectInvoiceByMap(Map<String,Object> pMap);

}
